// pages/mine/mystore/member/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
membernum:677,
member:[
	{ img: "/images/index5-1.png", name: "李大大", identity:"森林支泉客栈店主",time:"2018.03.16",isauth:true},
	{ img: "/images/index5-1.png", name: "李大大", identity: "森林支泉客栈店主", time: "2018.03.16", isauth: true },
	{ img: "/images/index5-1.png", name: "李大大", identity: "森林支泉客栈店主", time: "2018.03.16", isauth: true },
	{ img: "/images/index5-1.png", name: "李大大", identity: "森林支泉客栈店主", time: "2018.03.16", isauth: false },
	{ img: "/images/index5-1.png", name: "李大大", identity: "森林支泉客栈店主", time: "2018.03.16", isauth: true },
	{ img: "/images/index5-1.png", name: "李大大", identity: "森林支泉客栈店主", time: "2018.03.16", isauth: false }
]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },
	authtap:function(e){
		var temp=this.data.member
		var idx=e.target.dataset.index
		temp[idx].isauth = !temp[idx].isauth
		this.setData({
			member:temp
		})
	}
})